package com.YxyBackMange.Entity.Ware;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.hibernate.validator.constraints.Length;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Set;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 实体类WareCollection
 * 数据表ware_tb_collection
 * 用户收藏表
 * 2017-12-3 3:47:31
 * @author Administrator
 *
 */
@Table(name = "ware_tb_collection")
public class WareCollection  implements Serializable {

		//
	@Id
	@GeneratedValue(generator = "JDBC")


	private Integer id;
		//用户编号


	private Integer userId;
		//商品编号


	private Integer goodId;
		//创建时间


	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;


	public WareCollection(){

	}
	public WareCollection(Integer id){
		this.id=id;
	}
	public void setId(Integer id){
		this.id=id;
	}

	public Integer getId(){
		return this.id;
	}
	public void setUserId(Integer userId){
		this.userId=userId;
	}

	public Integer getUserId(){
		return this.userId;
	}
	public void setGoodId(Integer goodId){
		this.goodId=goodId;
	}

	public Integer getGoodId(){
		return this.goodId;
	}
	public void setCreateTime(Date createTime){
		this.createTime=createTime;
	}

	public Date getCreateTime(){
		return this.createTime;
	}


}
